package framework.view;

import ilm.framework.gui.BaseGUI;


public class FrameworkViewManager {
    private BaseDrawer baseDrawer;
    private static FrameworkViewManager instance = null;
    
    private FrameworkViewManager() {
    }
    
    public static FrameworkViewManager getInstance() {
        if(instance == null)
            instance = new FrameworkViewManager();
        
        return instance;
    }
    
    public void addDrawer(BaseDrawer drawer) {
        this.baseDrawer = drawer;
    }
    
    public void drawUi(BaseWindow window, BaseGUI ilm) {
        baseDrawer.newWindow(window, ilm);
        
        // resolvendo o workspace(canvas)
        // TODO: pensar como fazer
        
        // resolvendo o menu
        baseDrawer.newMenu(window.getMenu());
    }
}
